import {defineStore} from "pinia";
import {CONFIG} from "~/utils/conf/index.js";

export const useCommonStore = defineStore('common', {
    state: () => {
        return {
            // 侧边栏是否展开
            isCollapse: true,
        }
    },
    actions: {
        // 打开管理页面
        openManagePage() {
            window.open(CONFIG.MANAGER_URL)
        },
    }
})